package com.springboot.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "user-server" , fallback = UserFeignFallBack.class)
public interface UserFeign {
	
	@GetMapping("/users/{userId}")
	public ResponseEntity getUserById(@PathVariable("userId") String userId) throws Exception;
	
}
